<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;

/**
 *
 * @var yii\web\View $this
 * @var backend\modules\trancfg\models\Pubtrandict $model
 * @var yii\widgets\ActiveForm $form
 */
?>

<div class="pubtrandict-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'MTID')->textInput(['maxlength' => 6])?>
    <?= $form->field($model, 'SEQNO')->textInput()?>
    <?= $form->field($model, 'ROUTEID')->textInput(['maxlength' => 2])?>
    <?= $form->field($model, 'IOFLAG')->textInput(['maxlength' => 1])?>
    <?= $form->field($model, 'DICTLEN')->textInput()?>
    <?= $form->field($model, 'DECLEN')->textInput()?>
    <?= $form->field($model, 'SUBMARK')->textInput(['maxlength' => 2])?>
    <?= $form->field($model, 'DICTTYPE')->textInput(['maxlength' => 1])?>
    <?= $form->field($model, 'FLAG')->textInput(['maxlength' => 1])?>
    <?= $form->field($model, 'DICTCODE')->textInput(['maxlength' => 32])?>
    <?= $form->field($model, 'DEALFUNC')->textInput(['maxlength' => 32])?>
    <?= $form->field($model, 'DICTNAME')->textInput(['maxlength' => 40])?>
    <?= $form->field($model, 'FIELD')->textInput(['maxlength' => 40])?>
    <?= $form->field($model, 'SUBCOND')->textInput(['maxlength' => 60])?>
    <?= $form->field($model, 'DEFVAL')->textInput(['maxlength' => 60])?>
    <?= $form->field($model, 'MEMO')->textInput(['maxlength' => 60])?>
    <?= $form->field($model, 'PATH')->textInput(['maxlength' => 100])?>

    <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? Yii::t('app', '<i class="glyphicon glyphicon-plus"></i> 新增') : Yii::t('app', '<i class="glyphicon glyphicon-pencil"></i> 修改'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary'])?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
